<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"	
	  xmlns:p="http://primefaces.org/ui">

	  <ui:composition template="template.xhtml">
		<ui:define name="tituloPaginas">INVISTA</ui:define>
		<ui:define name="corpoPagina">
	  		<h:form id="formulario_cadastro_produto" prependId="false">
	  			<h:messages />
	  		
		  		<h:panelGrid column="2">
		  			<f:facet name="header">Cadastro de Produto</f:facet>
		  			<f:facet name="footer">
		  				<div align="center">
		  					<p:commandButton value="Salvar" action="#{produtoController.salvar()}" />
		  					<p:commandButton value="Cancelar" action="#{produtoController.cancelar()}" immediate="true" />
		  				</div>
		  			</f:facet>
					
					<p:outputLabel value="Nome"/>
					<p:inputText value="#{produtoController.produto.nome}" maxlength="40" size="45" readonly="false"/>
					
		  		</h:panelGrid>
				  		
	  		</h:form>
		</ui:define>
	  </ui:composition>

</html>
